package reduce.fz.com.reduce.bean;

import java.io.Serializable;

/**
 * Created by qingshengzheng on 15/11/17.
 */
public class Pic implements Serializable, Comparable<Pic>, ICard {
    public int index;
    public int width;
    public int height;
    public String url;
    public String localpath;
    public  int type;

    @Override
    public int compareTo(Pic another) {
        return index - another.index;
    }

    public Pic() {

    }

    public Pic(String localurl) {
        this.localpath = localurl;
    }

    public Pic(int index, String localurl, String url) {
        this.index = index;
        this.localpath = localurl;
        this.url = url;

    }

    public Pic(int index, String localurl, String url, int width, int height) {
        this.index = index;
        this.localpath = localurl;
        this.url = url;
        this.width = width;
        this.height = height;

    }

    @Override
    public int getType() {
        return 0;
    }

    @Override
    public String getUrl() {
        return url;
    }

    @Override
    public String getLocalPath() {
        return localpath;
    }

    @Override
    public void setUrl(String url) {
        this.url = url;
    }
}
